<?php
namespace srvs;

class ParamService extends  BaseService {
    public static function getModelName(){
        return "Param";
    }

    public function getBaseInfo(){
        $datalist=$this->getAll();
        $datalist= \yii\helpers\ArrayHelper::index($datalist, 'keyname');

        $data=[
            "companyname"=>isset($datalist["companyname"])?$datalist["companyname"]["keyvalue"]:"",
            "webtitle"=>isset($datalist["webtitle"])?$datalist["webtitle"]["keyvalue"]:"",
            "keywords"=>isset($datalist["keywords"])?$datalist["keywords"]["keyvalue"]:"",
            "description"=>isset($datalist["description"])?$datalist["description"]["keyvalue"]:"",
            "weblogo"=>isset($datalist["weblogo"])?$datalist["weblogo"]["keyvalue"]:"",
        ];
        return $data;
    }
}